.class final Lnet/tsapps/topdeals/views/g;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field private synthetic a:Lnet/tsapps/topdeals/views/TdScrollview;


# direct methods
.method constructor <init>(Lnet/tsapps/topdeals/views/TdScrollview;)V
    .locals 0

    iput-object p1, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final run()V
    .locals 10

    const/4 v9, 0x1

    const/4 v8, 0x0

    const-wide/high16 v4, 0x3fe0

    iget-object v0, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    invoke-static {v0}, Lnet/tsapps/topdeals/views/TdScrollview;->a(Lnet/tsapps/topdeals/views/TdScrollview;)Lnet/tsapps/topdeals/views/TdScrollview;

    move-result-object v0

    invoke-virtual {v0}, Lnet/tsapps/topdeals/views/TdScrollview;->getScrollY()I

    move-result v0

    iget-object v1, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    invoke-static {v1}, Lnet/tsapps/topdeals/views/TdScrollview;->b(Lnet/tsapps/topdeals/views/TdScrollview;)I

    move-result v1

    sub-int/2addr v1, v0

    invoke-static {v1}, Ljava/lang/Math;->abs(I)I

    move-result v1

    iget-object v2, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    invoke-virtual {v2}, Lnet/tsapps/topdeals/views/TdScrollview;->getHeight()I

    move-result v2

    int-to-double v2, v2

    mul-double/2addr v2, v4

    mul-double/2addr v4, v2

    int-to-double v6, v1

    cmpl-double v2, v6, v2

    if-gtz v2, :cond_0

    iget-object v2, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    invoke-static {v2}, Lnet/tsapps/topdeals/views/TdScrollview;->c(Lnet/tsapps/topdeals/views/TdScrollview;)Z

    move-result v2

    if-eqz v2, :cond_3

    int-to-double v1, v1

    cmpl-double v1, v1, v4

    if-lez v1, :cond_3

    :cond_0
    iget-object v1, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    invoke-static {v1}, Lnet/tsapps/topdeals/views/TdScrollview;->b(Lnet/tsapps/topdeals/views/TdScrollview;)I

    move-result v1

    sub-int/2addr v1, v0

    if-gez v1, :cond_2

    iget-object v1, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    iput v8, v1, Lnet/tsapps/topdeals/views/TdScrollview;->c:I

    :goto_0
    iget-object v1, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    iget-object v1, v1, Lnet/tsapps/topdeals/views/TdScrollview;->a:Ljava/lang/Runnable;

    if-eqz v1, :cond_1

    iget-object v1, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    invoke-static {v1, v9}, Lnet/tsapps/topdeals/views/TdScrollview;->a(Lnet/tsapps/topdeals/views/TdScrollview;Z)V

    iget-object v1, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    iget-object v1, v1, Lnet/tsapps/topdeals/views/TdScrollview;->a:Ljava/lang/Runnable;

    invoke-interface {v1}, Ljava/lang/Runnable;->run()V

    :cond_1
    iget-object v1, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    invoke-static {v1, v0}, Lnet/tsapps/topdeals/views/TdScrollview;->a(Lnet/tsapps/topdeals/views/TdScrollview;I)V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    invoke-static {v0}, Lnet/tsapps/topdeals/views/TdScrollview;->d(Lnet/tsapps/topdeals/views/TdScrollview;)Landroid/os/Handler;

    move-result-object v0

    const-wide/16 v1, 0xc8

    invoke-virtual {v0, p0, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    :goto_1
    return-void

    :cond_2
    iget-object v1, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    iput v9, v1, Lnet/tsapps/topdeals/views/TdScrollview;->c:I

    goto :goto_0

    :cond_3
    iget-object v0, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    iget-object v0, v0, Lnet/tsapps/topdeals/views/TdScrollview;->b:Ljava/lang/Runnable;

    if-eqz v0, :cond_4

    iget-object v0, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    invoke-static {v0}, Lnet/tsapps/topdeals/views/TdScrollview;->c(Lnet/tsapps/topdeals/views/TdScrollview;)Z

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    iget-object v0, v0, Lnet/tsapps/topdeals/views/TdScrollview;->b:Ljava/lang/Runnable;

    invoke-interface {v0}, Ljava/lang/Runnable;->run()V

    iget-object v0, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    invoke-static {v0, v8}, Lnet/tsapps/topdeals/views/TdScrollview;->a(Lnet/tsapps/topdeals/views/TdScrollview;Z)V

    :cond_4
    iget-object v0, p0, Lnet/tsapps/topdeals/views/g;->a:Lnet/tsapps/topdeals/views/TdScrollview;

    invoke-static {v0}, Lnet/tsapps/topdeals/views/TdScrollview;->e(Lnet/tsapps/topdeals/views/TdScrollview;)V

    goto :goto_1
.end method
